home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #4 / Amiga Plus CD - 2000 - No. 4.iso / Tools / WWW / CManager / Docs / Developer / CManager_mcc.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-27  |  5.6 KB  |  149 lines

  1. #ifndef CMANAGER_MCC_H
  2. #define CMANAGER_MCC_H
  3.  
  4. /*********************************************************
  5. **                                                      **
  6. **      CManager.mcc                                    **
  7. **                                                      **
  8. **              ©1999-2000 Simone Tellini               **
  9. **                                                      **
  10. *********************************************************/
  11.  
  12.  
  13. /// Support stuff
  14. #ifndef REG
  15. #ifdef _DCC
  16. #define REG(x) __ ## x
  17. #else
  18. #define REG(x) register __ ## x
  19. #endif
  20. #endif
  21.  
  22. #ifndef ASM
  23. #if defined __MAXON__ || defined __STORM__ || defined _DCC
  24. #define ASM
  25. #else
  26. #define ASM __asm
  27. #endif
  28. #endif
  29.  
  30. #ifndef SAVEDS
  31. #ifdef __MAXON__
  32. #define SAVEDS
  33. #endif
  34. #if defined __STORM__ || defined __SASC
  35. #define SAVEDS __saveds
  36. #endif
  37. #if defined _GCC || defined _DCC
  38. #define SAVEDS __geta4
  39. #endif
  40. #endif
  41.  
  42.  
  43. #ifndef MAKE_ID
  44. #define MAKE_ID(a,b,c,d)    ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  45. #endif
  46.  
  47. #ifndef MIN
  48. #define MIN(a,b)    (( a < b ) ? ( a ) : ( b ))
  49. #endif
  50.  
  51. #ifndef MAX
  52. #define MAX(a,b)    (( a > b ) ? ( a ) : ( b ))
  53. #endif
  54.  
  55. #ifndef ABS
  56. #define ABS(a) (((a) > 0) ? (a) : -(a))
  57. #endif
  58. ///
  59.  
  60.  
  61. #define MUIC_CManager   "CManager.mcc"
  62. #define CManagerObject  MUI_NewObject( MUIC_CManager
  63.  
  64.  
  65. /*************************
  66. **      Methods         **
  67. *************************/
  68.  
  69. #define MUIM_CManager_LoadData          0xF76B0011
  70. #define MUIM_CManager_SaveData          0xF76B0016
  71. #define MUIM_CManager_Sort              0xF76B0017
  72. #define MUIM_CManager_SetGroup          0xF76B0012  /* PRIVATE */
  73. #define MUIM_CManager_HandleNotify      0xF76B0013  /* PRIVATE */
  74. #define MUIM_CManager_ChangeSort        0xF76B0014  /* PRIVATE */
  75. #define MUIM_CManager_FreeData          0xF76B0015  /* PRIVATE */
  76. #define MUIM_CManager_GetGroup          0xF76B0018  /* PRIVATE */
  77. #define MUIM_CManager_DisposeObj        0xF76B0019  /* PRIVATE */
  78. #define MUIM_CManager_Arrow             0xF76B001A  /* PRIVATE */
  79. #define MUIM_CManager_AddGroup          0xF76B001B  /* PRIVATE */
  80. #define MUIM_CManager_RemGroup          0xF76B001C  /* PRIVATE */
  81. #define MUIM_CManager_AddItem           0xF76B001D  /* PRIVATE */
  82. #define MUIM_CManager_GrabLists         0xF76B001E
  83. #define MUIM_CManager_ReinsertLists     0xF76B001F
  84. #define MUIM_CManager_EditSelected      0xF76B0020
  85. #define MUIM_CManager_OnDoubleClick     0xF76B0021
  86. #define MUIM_CManager_LoadPrefs         0xF76B0022  /* PRIVATE */
  87. #define MUIM_CManager_AddEntry          0xF76B0023
  88. #define MUIM_CManager_Import            0xF76B0024
  89. #define MUIM_CManager_Login             0xF76B0025  /* PRIVATE */
  90. #define MUIM_CManager_Export            0xF76B0026  /* v12 */
  91. #define MUIM_CManager_Search            0xF76B0027  /* v12 */
  92. #define MUIM_CManager_Cleanup           0xF76B0028  /* v14 */
  93.  
  94.  
  95. #define MUIV_CManager_AddEntry_CurrentGroup (1 << 0)
  96.  
  97. // Import types
  98. #define MUIV_CManager_Import_Voyager        0
  99. #define MUIV_CManager_Import_IB             1
  100. #define MUIV_CManager_Import_AWeb           2
  101. #define MUIV_CManager_Import_Users_CSV      3
  102. // flags
  103. #define MUIV_CManager_Import_Filter         (1 << 0) /* avoid duplicate entries */
  104.  
  105. // Export types
  106. #define MUIV_CManager_Export_HTML_URLs      0       /* export WWW/FTP records   */
  107. #define MUIV_CManager_Export_HTML_WWW       1       /* export WWW records       */
  108. #define MUIV_CManager_Export_HTML_FTP       2       /* export FTP records       */
  109. #define MUIV_CManager_Export_CSV_Users      3
  110.  
  111.  
  112. /*************************
  113. **      Attributes      **
  114. *************************/
  115.  
  116. #define MUIA_CManager_ListObject        0xF76B0010  /* ..G.     Object *        */
  117. #define MUIA_CManager_Changed           0xF76B0012  /* .SGN     BOOL            */
  118. #define MUIA_CManager_Path              0xF76B0013  /* ..G.     STRPTR          */
  119. #define MUIA_CManager_NoMenu            0xF76B0014  /* IS..     BOOL            */
  120. #define MUIA_CManager_HideUsers         0xF76B0015  /* I...     BOOL            */
  121. #define MUIA_CManager_HideWWW           0xF76B0016  /* I...     BOOL            */
  122. #define MUIA_CManager_HideFTP           0xF76B0017  /* I...     BOOL            */
  123. #define MUIA_CManager_HideChat          0xF76B0018  /* I...     BOOL            */
  124. #define MUIA_CManager_CMData            0xF76B0019  /* ..G.     struct CMData * */
  125. #define MUIA_CManager_AppDoubleClick    0xF76B001A  /* IS..     struct Hook *   */
  126. #define MUIA_CManager_HideTelnet        0xF76B001B  /* I...     BOOL            */
  127. #define MUIA_CManager_TreeObject        0xF76B001C  /* ..G.     Object *        */
  128.  
  129.  
  130. /*************************
  131. **      Structures      **
  132. *************************/
  133.  
  134. struct MUIP_CManager_LoadData   { ULONG MethodID; STRPTR User; STRPTR Path; };
  135.                                 // User == NULL -> Current, User & Path are mutually exclusive
  136. struct MUIP_CManager_SaveData   { ULONG MethodID; ULONG Ask; STRPTR Path; };
  137.                                 // Ask for path, use the provided one or save in the user's db
  138. struct MUIP_CManager_AddEntry   { ULONG MethodID; struct CMUser *Entry; ULONG Flags; };
  139. struct MUIP_CManager_SetGroup   { ULONG MethodID; struct MUIS_Listtree_TreeNode *Node; }; /* PRIVATE */
  140. struct MUIP_CManager_ChangeSort { ULONG MethodID; ULONG Column; };  /* PRIVATE */
  141. struct MUIP_CManager_DisposeObj { ULONG MethodID; Object *Object; };  /* PRIVATE */
  142. struct MUIP_CManager_Arrow      { ULONG MethodID; ULONG Direction; }; /* PRIVATE */
  143. struct MUIP_CManager_LoadPrefs  { ULONG MethodID; STRPTR File; }; /* PRIVATE */
  144. struct MUIP_CManager_Import     { ULONG MethodID; ULONG Type; STRPTR File; ULONG Flags; };
  145. struct MUIP_CManager_Export     { ULONG MethodID; ULONG Type; STRPTR File; ULONG Flags; };
  146.  
  147.  
  148. #endif /* CMANAGER_MCC_H */
  149.